import React, { useState } from 'react';
import { Input,Button } from "antd";
function Search({kkk}) {
    const [keyword,setKeyword]=useState('')
    const sou=()=>{
        console.log(keyword)
        kkk({keyword})
    }
    return (
        <div>
            <Input placeholder="请输入内容" style={{ width: 200 }} value={keyword} onChange={(e)=>setKeyword(e.target.value)} />
            <Button onClick={sou}>搜索</Button>
            
        </div>
    );
}

export default Search;